# -*- conding:UTF-8 -*-

'''
@ Project: p7_flask
@ File: texk2.py
@ Author: 师路遥
@ Date：2022/6/8 16:24

'''
from pytz import utc

from apscheduler.schedulers.background import BackgroundScheduler,BlockingScheduler
from apscheduler.jobstores.sqlalchemy import SQLAlchemyJobStore
from apscheduler.executors.pool import ProcessPoolExecutor
from datetime import datetime
from datetime import date
executors = {
    'default':{'type':'threadpool','max_workers':20},
    'processpool':ProcessPoolExecutor(max_workers=5)
}

scheduler = BlockingScheduler()

scheduler.configure(executors=executors)
scheduler.add_job(任务,'cron',hour=23,minute=59,second=59)
scheduler.start()